<div class="top-bar">
    <div class="logo">
        <img src="<?php echo $host ?>/Images/Bret_Logo.png"/>
    </div>
    <?php
    if ($this->viewPort && $this->param != "")
        include $this->viewPort;
    ?>
    <div class="account" style="cursor: pointer;">
        <div class="info">
            <p id="user-name" class="name"><?php $user = User::withId($GLOBALS['userId']);
                echo $user->name ?></p>
            <p class="email"><?php echo $user->email; ?></p>
        </div>
        <img class="avatar" src="<?php echo $host.'/'.$user->avatar; ?>"/>
    </div>
    <div class="account-menu">
        <a class="item bret" href="<?php echo $host ?>/bret">
          <i class="fa fa-yelp"></i> Your Brets
        </a>
        <a class="item manager" href="<?php echo $host ?>/manager">
          <i class="fa fa-manager"></i> Manager
        </a>
        <a class="item logout" href="<?php echo $host ?>/logout">
          <i class="fa fa-manager"></i> Log Out
        </a>
    </div>
</div>

